package com.xmb.common.controller.internal;

import com.xmb.common.entity.XmbUserWithdrawDepositBlotter;
import com.xmb.common.service.WithdrawService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by lyndon on 2019/5/6.
 */
@RestController
@RequestMapping(value = "/withdraw")
public class WxWithDrawDepositController {

    @Autowired
    private WithdrawService withdrawService;

    /**
     * 确认提现
     * @param
     */
    @PostMapping(value = "confirmWithDraw")
    public XmbUserWithdrawDepositBlotter confirmWithDraw(@RequestBody XmbUserWithdrawDepositBlotter blotter) {
        return withdrawService.confirmWithDraw(blotter);
    }


    /**
     * 退审
     * @param
     */
    @PostMapping(value = "refuseWithDraw")
    public XmbUserWithdrawDepositBlotter refuseWithDraw(@RequestBody XmbUserWithdrawDepositBlotter blotter) {
        return withdrawService.refuseWithDraw(blotter);
    }
}
